package com.power.ov;

/**
 * Created with IntelliJ IDEA.
 * User: 李辽
 * Date: 2020/10/03 17:08
 * Description:返回数据表格内容
 * Version: V1.0
 */
public class ResultDataTable<T> {
    private int code;//状态吗
    private String message;//返回消息
    private long count;//总条数
    private T data;//返回具体的数据

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String msg) {
        this.message = message;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResultDataTable{" +
                "code=" + code +
                ", msg='" + message + '\'' +
                ", count=" + count +
                ", data=" + data +
                '}';
    }
}
